<!--
  Generated template for the FoodMenuAddPage page.

  See http://ionicframework.com/docs/components/#navigation for more info on
  Ionic pages and navigation.
-->
<ion-header>

  <ion-navbar>
    <ion-title>{{pageMenu.tittle}}</ion-title>
  </ion-navbar>

</ion-header>


<ion-content>
  <ion-list>
    <div class="center">
      <page-upload-file [type]="1" [upload]="upload" [old]="imgId" (imgId)="output($event)"></page-upload-file>
    </div>
    <ion-item>
      <ion-label>{{pageMenu.name}}</ion-label>
      <ion-input type="text" [(ngModel)]="name"></ion-input>
    </ion-item>

    <ion-item>
      <ion-label>{{pageMenu.price}}</ion-label>
      <ion-input type="number"  [(ngModel)]="price"></ion-input>
    </ion-item>

    <ion-item>
      <ion-label>{{pageMenu.remark}}</ion-label>
      <ion-input type="text"  [(ngModel)]="remark"></ion-input>
    </ion-item>

    <ion-item>
      <ion-label>{{pageMenu.type}}</ion-label>
      <ion-select [(ngModel)]="foodtype" interface="popover" >
        <div *ngFor="let lst of foodTypeList">
          <ion-option [value]="lst.id" >{{lst.foodtype}}</ion-option>
        </div>

      </ion-select>
    </ion-item>

    <!--<ion-item>-->
      <!--<ion-label>{{pageMenu.stock}}</ion-label>-->
      <!--<ion-input type="text"  [(ngModel)]="stock"></ion-input>-->
    <!--</ion-item>-->

  </ion-list>

  <div padding>
    <button ion-button color="primary" block (click)="submit()">确定</button>
  </div>
</ion-content>
